import Login from './Login.vue'
import NotFound from './404.vue'
import Home from './Home.vue'
import Main from './Main.vue'
import project from './project/project.vue'
import projectMess from './project/project-mess.vue'
import userAdd from './project/project-userAdd.vue'
import projectUser from './project/project-user.vue'
import presentation from './project/presentation.vue'
import dayReport from './reportforms/dayReport.vue'
import dailyPager from './reportforms/dailyPager.vue'
import weelkPager from './reportforms/weelkPager.vue'
import monthlyPager from './reportforms/monthlyPager.vue'
import latestData from './charts/latestData.vue'
//净空收敛.
import oldData from './charts/convergence/oldData.vue'
import convergenceCorrelationAnalysis from './charts/convergence/convergenceCorrelationAnalysis.vue';
import survey from './charts/survey.vue'
import amplitude from './charts/amplitude.vue'
import time from './charts/time.vue'
//import timeCorrelation from './charts/timeCorrelation.vue'
import dataComparison from './charts/dataComparison.vue'
import matching from './charts/matching.vue'
import photo from './bim3d/photo.vue'
import user from './gather/userlist.vue'
import projectList from './gather/projectlist.vue'
import dtu from './gather/dtu.vue'
import sensor from './gather/sensor.vue'
import alarmRecord from './gather/alarmRecord.vue'
//绩效评价
import app from './app/app.vue'
import app1 from './app/app1.vue'
import kuangshan from './app/kuangshan.vue'
import heliu from './app/heliu.vue'
import senlin from './app/senlin.vue'
import nongtian from './app/nongtian.vue'
import hupo from './app/hupo.vue'
import caodi from './app/caodi.vue'
import shehuijixiao from './app/shehuijixiao.vue'
import guanlijixiao from './app/guanlijixiao.vue'
import zhibiaoquanzhong from './app/zhibiaoquanzhong.vue'
import calERFEI from './app/calERFEI.vue'

//土地利用
import ground from './ground/ground.vue'
import tudileixing from './ground/tudileixing.vue'
import mianjibingfu from './ground/mianjibingfu.vue'
import mianjizhuanyi from './ground/mianjizhuanyi.vue'
import shikongxulie from './ground/shikongxulie.vue'
import zhuantizhitu from './ground/zhuantizhitu.vue'

import gather from './gather/gather.vue'
//地表沉降
import oldDataSettling from './charts/settling/oldDataSettling.vue'
import amplitudeSetting from './charts/settling/amplitudeSetting.vue'
import dataComparisonSetting from './charts/settling/dataComparisonSetting.vue'
import timeSetting from './charts/settling/timeSetting.vue'
import settlingCorrelationAnalysis from './charts/settling/settlingCorrelationAnalysis.vue';
import settlingHotPic from './charts/settling/settlingHotPic.vue'
//测斜
import oldDataSurvey from './charts/survey/oldDataSurvey.vue';
import timeCorrelationSurvey from './charts/survey/timeCorrelationSurvey.vue';
import dataComparisonSurvey from './charts/survey/dataComparisonSurvey.vue';
import surveyCorrelationAnalysis from './charts/survey/surveyCorrelationAnalysis.vue';
// 拱顶沉降
import oldDataHtran from './charts/htran/oldDataHtran.vue'
import htranCorrelationAnalysis from './charts/htran/htranCorrelationAnalysis.vue';
// 支撑轴力
import oldDataSAF from './charts/strutaxialforces/oldDataSAF.vue'
import struCorrelationAnalysis from './charts/strutaxialforces/struCorrelationAnalysis.vue';
// 地下水位
import oldDataWater from './charts/watertable/oldDataWater.vue'
import timeCorrelationWater from './charts/watertable/timeCorrelationWater.vue'
import waterCorrelationAnalysis from './charts/watertable/waterCorrelationAnalysis.vue';

//图标库Font Awesome(http://www.fontawesome.com.cn/)
let routes = [{
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '',
        hidden: true,
    },
    {
        path: '/presentation',
        component: presentation,
        hidden: true
    },
    {
        path: '/gather',
        component: gather,
        hidden: true
    },
    {
        path: '/app',
        component: app,
        hidden: true
    },
    {
        path: '/error',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/presentation',
        component: presentation,
        leaf: true,
        menu1: true,
        iconCls: 'fa fa-cubes',
        children: [{
            path: '/photo',
            component: photo,
            name: '图片管理 ',

        }]
    },
    {
        path: '/presentation',
        component: presentation,
        name: '数据分析',
        menu1: true,
        iconCls: 'fa fa-bar-chart',
        children: [{
                path: '/latestData',
                component: latestData,
                name: '最新数据',

            },
            //净空收敛.
            {
                path: '/oldData',
                component: oldData,
                name: '历史数据',


            },
            {
                path: '/convergenceCorrelationAnalysis',
                component: convergenceCorrelationAnalysis,
                name: '相关性分析',


            },
            {
                path: '/survey',
                component: survey,
                name: '测斜分析',

            },
            {
                path: '/amplitude',
                component: amplitude,
                name: '幅值分布'
            },
            {
                path: '/time',
                component: time,
                name: '时间分布 '
            },
            {
                path: '/matching',
                component: matching,
                name: '拟合曲线 '
            },
            // {
            //     path: '/timeCorrelation',
            //     component: timeCorrelation,
            //     name: '时间对比 '
            // },
            {
                path: '/dataComparison',
                component: dataComparison,
                name: '数据对比 '
            },
            // 地表沉降
            {
                path: '/oldDataSettling',
                component: oldDataSettling,
                name: '历史数据',
            },
            {
                path: '/amplitudeSetting',
                component: amplitudeSetting,
                name: '幅值分布'
            },
            {
                path: '/timeSetting',
                component: timeSetting,
                name: '时间分布'
            },
            {
                path: '/dataComparisonSetting',
                component: dataComparisonSetting,
                name: '数据对比'
            },
            {
                path: '/settlingCorrelationAnalysis',
                component: settlingCorrelationAnalysis,
                name: '相关性分析'
            },
            {
                path: '/settlingHotPic',
                component: settlingHotPic,
                name: '沉降热图'
            },
            //测斜
            {
                path: '/oldDataSurvey',
                component: oldDataSurvey,
                name: '历史数据'
            },
            {
                path: '/timeCorrelationSurvey',
                component: timeCorrelationSurvey,
                name: '时间对比'
            },
            {
                path: '/dataComparisonSurvey',
                component: dataComparisonSurvey,
                name: '测点对比'
            },
            {
                path: '/surveyCorrelationAnalysis',
                component: surveyCorrelationAnalysis,
                name: '相关性分析'
            },
            // 拱顶沉降
            {
                path: '/oldDataHtran',
                component: oldDataHtran,
                name: '历史数据'
            },
            {
                path: '/htranCorrelationAnalysis',
                component: htranCorrelationAnalysis,
                name: '相关性分析'
            },
            // 支撑轴力
            {
                path: '/oldDataSAF',
                component: oldDataSAF,
                name: '历史数据'
            },
            {
                path: '/struCorrelationAnalysis',
                component: struCorrelationAnalysis,
                name: '相关性分析'
            },
            // 地下水位
            {
                path: '/oldDataWater',
                component: oldDataWater,
                name: '历史数据'
            }, {
                path: '/timeCorrelationWater',
                component: timeCorrelationWater,
                name: '时间对比'
            },
            {
                path: '/waterCorrelationAnalysis',
                component: waterCorrelationAnalysis,
                name: '相关性分析'
            }

        ]
    },
    {
        path: '/presentation',
        component: presentation,
        leaf: true,
        menu1: true,
        iconCls: 'fa fa-object-group',
        children: [{
            path: '/project',
            component: project,
            name: '监测方案 ',
            index: '3'
        }]
    },
    {
        path: '/presentation',
        component: presentation,
        // name: '报表',
        leaf: true,
        menu1: true,
        iconCls: 'fa fa-file-text-o',
        children: [{
                path: '/dayReport',
                component: dayReport,
                name: '日报',
                index: '4'
            },
            // {
            //     path: '/dailyPager',
            //     component: dailyPager,
            //     name: '日报',
            //     index: '4'
            // },
            // {
            //     path: '/weelkPager',
            //     component: weelkPager,
            //     name: '周报'
            // },
            // {
            //     path: '/monthlyPager',
            //     component: monthlyPager,
            //     name: '月报'
            // },
        ]
    },
    {
        path: '/presentation',
        component: presentation,
        iconCls: 'fa fa-cube',
        name: "成员管理",
        menu1: true,
        children: [
            // {
            //     path: '/projectMess',
            //     component: projectMess,
            //     name: '项目信息',
            // },
            {
                path: '/userAdd',
                component: userAdd,
                name: '添加用户',

            },
            {
                path: '/projectUser',
                component: projectUser,
                name: '项目成员',
            }
        ],
    },
    {
        path: '/',
        component: gather,
        hidden: true,
        leaf: true,
        menu2: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/userlist',
            component: user,
            name: '用户列表'
        }]
    },
    {
        path: '/',
        component: gather,
        leaf: true,
        menu2: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/projectList',
            component: projectList,
            name: '项目列表',
        }]
    },
    // {
    //     path: '/',
    //     component: gather,
    //     leaf: true,
    //     menu2: true,
    //     iconCls: 'fa fa-list',
    //     children: [{
    //         path: '/dtu',
    //         component: dtu,
    //         name: 'DTU'
    //     }]
    // },
    // {
    //     path: '/',
    //     component: gather,
    //     leaf: true,
    //     menu2: true,
    //     iconCls: 'fa fa-list',
    //     children: [{
    //         path: '/sensor',
    //         component: sensor,
    //         name: '传感器'
    //     }]
    // },
    // {
    //     path: '/',
    //     component: gather,
    //     leaf: true,
    //     menu2: true,
    //     iconCls: 'fa fa-list',
    //     children: [{
    //         path: '/alarmRecord',
    //         component: alarmRecord,
    //         name: '阈值报警'
    //     }]
    // },

    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/kuangshan',
            component: kuangshan,
            name: '矿山评价'
            // name: '山系统'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/heliu',
            component: heliu,
            name: '河流评价'
            // name: '水系统'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/senlin',
            component: senlin,
            name: '森林评价'
            // name: '林系统'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/nongtian',
            component: nongtian,
            name: '农田评价'
            // name: '田系统'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/hupo',
            component: hupo,
            name: '湖泊评价'
            // name: '湖系统'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/caodi',
            component: caodi,
            name: '草地评价'
            // name: '草系统'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/shehuijixiao',
            component: shehuijixiao,
            name: '社会绩效评价'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/guanlijixiao',
            component: guanlijixiao,
            name: '管理绩效评价'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/zhibiaoquanzhong',
            component: zhibiaoquanzhong,
            // name: '指标权重'
            name: '山水林田湖草'
        }]
    },
    {
        path: '/',
        component: app,
        leaf: true,
        menu3: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/calERFEI',
            component: calERFEI,
            // name: '指标权重'
            name: '绩效评价指数'
        }]
    },
    {
        path: '/',
        component: ground,
        leaf: true,
        menu4: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/tudileixing',
            component: tudileixing,
            name: '土地类型'
        }]
    },
    {
        path: '/',
        component: ground,
        leaf: true,
        menu4: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/mianjibingfu',
            component: mianjibingfu,
            name: '面积禀赋'
        }]
    },
    {
        path: '/',
        component: ground,
        leaf: true,
        menu4: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/mianjizhuanyi',
            component: mianjizhuanyi,
            name: '面积转移'
        }]
    },
    {
        path: '/',
        component: ground,
        leaf: true,
        menu4: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/shikongxulie',
            component: shikongxulie,
            name: '时空序列'
        }]
    },
    {
        path: '/',
        component: ground,
        leaf: true,
        menu4: true,
        iconCls: 'fa fa-list',
        children: [{
            path: '/zhuantizhitu',
            component: zhuantizhitu,
            name: '专题制图'
        }]
    },
    {
        path: '*',
        hidden: true,
        redirect: {
            path: '/error'
        }
    },

];

export default routes;